package com.open.capacity.reimburse.exception;

public class BusinessException extends RuntimeException{

    private static final long serialVersionUID = 2332608236621015980L;

    //业务异常编码
    private String code;

    //业务异常信息（前端可见的）
    private String message;

    public BusinessException() {
        super();
    }

    public BusinessException(String message) {
        super(message);
        this.message = message;
    }

    public BusinessException(String code, String message) {
        super(message);
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}